<?php
class Home_Controller_Base extends controller{
    public function init(){
        parent::init();
    }
    
    protected function getDefaultPageLink($indexArr, $totalCount, $page = 1, $pageSize = 10){
        $pages = ceil($totalCount/$pageSize);
        $p_l = '';
        for($i=1;$i<=$pages;$i++){
            if($i == $page){
                $p_l .= '<span>'.$i.'</span>';
            }else{
                $p_l .= '<a href="'.MONK::_url('*/list', $indexArr).'">'.$i.'</a>';
            }
        }
        return $p_l;
    }
}
